public class ImageThing extends FrameWindowController { private visibleImage thing; public void begin() { thing = new VisibleImage( picture.gif, 50, 50, canvas ); thing.setWidth(100); thing.setHeight(90); } }
You need to enable Javascript in your browser to edit pages.
help on how to format text
This creates a "VisibleImage" called thing at location (50, 50) on the canvas.
Then it sets the horizontal width and vertical height of the image to 100 and 90 respectively